<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: CFileObject类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_c_file_object-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CFileObject类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>文件操作基类  
 <a href="class_c_file_object.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_file_8h_source.html">File.h</a>&gt;</code></p>
<div class="dynheader">
类 CFileObject 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_c_file_object.png" usemap="#CFileObject_map" alt=""/>
  <map id="CFileObject_map" name="CFileObject_map">
<area href="class_c_file.html" title="文件操作类" alt="CFile" shape="rect" coords="0,56,79,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a3d478a483c1cb4beee6fc23d8435776e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_file_object.html#a3d478a483c1cb4beee6fc23d8435776e">CFileObject</a> ()</td></tr>
<tr class="separator:a3d478a483c1cb4beee6fc23d8435776e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe2c1d4f164930f6aa057ad484a32c89"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_file_object.html#afe2c1d4f164930f6aa057ad484a32c89">Open</a> (const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *sPath, unsigned <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> mode)=0</td></tr>
<tr class="separator:afe2c1d4f164930f6aa057ad484a32c89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50b3dd6df2c2b4062b1ea0f99d430731"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_file_object.html#a50b3dd6df2c2b4062b1ea0f99d430731">Close</a> ()=0</td></tr>
<tr class="separator:a50b3dd6df2c2b4062b1ea0f99d430731"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a6c634b1713582aa3ce42d5c0180bbf"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_file_object.html#a6a6c634b1713582aa3ce42d5c0180bbf">GetLastError</a> () const =0</td></tr>
<tr class="separator:a6a6c634b1713582aa3ce42d5c0180bbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdb5c510043dcf2c83d1e0b3de7bc771"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_file_object.html#afdb5c510043dcf2c83d1e0b3de7bc771">~CFileObject</a> ()</td></tr>
<tr class="separator:afdb5c510043dcf2c83d1e0b3de7bc771"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>文件操作基类 </p>
<p>主要解决大文件打开问题 </p>

<p class="definition">在文件 <a class="el" href="_file_8h_source.html">File.h</a> 第 <a class="el" href="_file_8h_source.html#l00015">15</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a3d478a483c1cb4beee6fc23d8435776e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d478a483c1cb4beee6fc23d8435776e">&#9670;&nbsp;</a></span>CFileObject()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CFileObject::CFileObject </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_file_8h_source.html">File.h</a> 第 <a class="el" href="_file_8h_source.html#l00018">18</a> 行定义.</p>

</div>
</div>
<a id="afdb5c510043dcf2c83d1e0b3de7bc771"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afdb5c510043dcf2c83d1e0b3de7bc771">&#9670;&nbsp;</a></span>~CFileObject()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual CFileObject::~CFileObject </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_file_8h_source.html">File.h</a> 第 <a class="el" href="_file_8h_source.html#l00022">22</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a50b3dd6df2c2b4062b1ea0f99d430731"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50b3dd6df2c2b4062b1ea0f99d430731">&#9670;&nbsp;</a></span>Close()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CFileObject::Close </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="class_c_file.html#a8e3b6d9b96dfcd5e2205bc5a7ee85476">CFile</a> 内被实现.</p>

</div>
</div>
<a id="a6a6c634b1713582aa3ce42d5c0180bbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a6c634b1713582aa3ce42d5c0180bbf">&#9670;&nbsp;</a></span>GetLastError()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a>* CFileObject::GetLastError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="class_c_file.html#a399f84f7d99f7888f11f740ce794e131">CFile</a> 内被实现.</p>

</div>
</div>
<a id="afe2c1d4f164930f6aa057ad484a32c89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe2c1d4f164930f6aa057ad484a32c89">&#9670;&nbsp;</a></span>Open()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool CFileObject::Open </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>sPath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="class_c_file.html#abb45c1c269a23f09ac84a33ddf988647">CFile</a> 内被实现.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/file/<a class="el" href="_file_8h_source.html">File.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
